-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.0 Alpha prep #2887
2.0.0 Alpha prep #2887
Conversation
This ensures all imported types are using the `type` keyword.
Will be used in the new and existing components.
Right now Next.js does barrel file optimization and re-writing imports to a real path in the `dist` folder. Most of those rewrites don't actually exist because they have an assumption: ```js import { FooBar } from '@headlessui/react' ``` is rewritten as: ```js import { FooBar } from '@headlessui/react/dist/components/foo-bar/foo-bar' ``` This script will make sure these paths exist...
This hook has a default implementation when comparing objects. If the object contains an `id`, then we will compare the objects by their `id`'s without the user of the library needing to specify `by="id"`. If the objects don't have an `id` prop, then the default is still to compare by reference (unless specicified otherwise).
…(singular) This is so that we can be consistent with the other components.
This is a more complex version of a soon to be exported `mergeProps` that we will be using in our components.
These are the ones being exposed inside `data-headlessui-state="..."`
f0af3a9
to
cd9749e
Compare
cd9749e
to
b14e756
Compare
These playgrounds are mainly test playgrounds. Lower priority for now, we will get back to them.
b14e756
to
20165b4
Compare
@RobinMalfait Love where this update is going and understand that it supports the new Catalyst toolkit, which is react-only. Do you plan at any point to add Vue support for these new Headless UI components in future updates, or is it reasonable to expect that the updates in this 2.0.0 alpha and future releases will only go to the React components? |
Just saw this note in the release announcement:
Glad to hear it! |
This PR includes a bunch of fixes and new components / feautures such as:
Added
Checkbox
componentRadio
component as an alternative to the existingRadioGroup.Option
componentButton
componentInput
componentTextarea
componentSelect
componentField
,Label
,Description
,Fieldset
andLegend
componentsDataInteractive
componentanchor
andmodal
prop toComboboxOptions
,ListboxOptions
,MenuItems
andPopoverPanel
componentsListboxSelectedOption
componentMenuSection
,MenuHeading
, andMenuSeparator
componentsdata-*
attributes as an alternative to the existingdata-headlessui-state="..."
attributeautoFocus
prop on focusable components (which maps todata-autofocus
)Changed
data-autofocus
in the dialog)active
prop in favor of thefocus
prop on theComboboxOption
,ListboxOption
,ListboxOption
,MenuItem
,MenuItem
,RadioOption
, andRadioOption
componentsFixed